#ifndef CPLAYALARM_H
#define CPLAYALARM_H

#include <QWidget>
#include <Phonon>

namespace Ui {
    class CPlayAlarm;
}

class CPlayAlarm : public QWidget
{
    Q_OBJECT

public:
    explicit CPlayAlarm( const QString &time,
                         const QString &info,
                         int timeOutSeconds,
                         QWidget *parent = 0 );
    ~CPlayAlarm();

protected:
    void showEvent ( QShowEvent * event );

private slots:
    void onrmlClicked();
    void onOkClicked();
    void onShowAgain();
    void onShowAlarm();

private:
    Ui::CPlayAlarm *ui;
    Phonon::MediaObject *music;
};

#endif // CPLAYALARM_H
